scala 基础二 scala 方法的定义和使用 1.scala的方法定义 scala的方法定义格式 def 方法名(参数名:参数类型):返回值类型={ //scala return 字段可以省略,最 ...